scrolledwindow: Don't set .frame on overshoot boxes
authorBenjamin Otte <otte@redhat.com>
Wed, 15 Oct 2014 15:18:26 +0000 (17:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 15 Oct 2014 15:18:26 +0000 (17:18 +0200)
gtk/gtkscrolledwindow.c

index 7547ac66cf1a51a41dab87d363131dbc8b03a274..dd2b928a2d19c280bf0589400b1bdcfb9a91717d 100644 (file)
@@ -1666,6 +1666,7 @@ gtk_scrolled_window_draw_overshoot (GtkScrolledWindow *scrolled_window,
   overshoot_y = CLAMP (overshoot_y, - MAX_OVERSHOOT_DISTANCE, MAX_OVERSHOOT_DISTANCE);
 
   gtk_style_context_save (context);
+  gtk_style_context_remove_class (context, GTK_STYLE_CLASS_FRAME);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_OVERSHOOT);
 
   if (overshoot_x > 0)
@@ -1686,6 +1687,7 @@ gtk_scrolled_window_draw_overshoot (GtkScrolledWindow *scrolled_window,
   gtk_style_context_restore (context);
 
   gtk_style_context_save (context);
+  gtk_style_context_remove_class (context, GTK_STYLE_CLASS_FRAME);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_OVERSHOOT);
 
   if (overshoot_y > 0)